package com.hero20061014.crazy3D.appmodifier;

import java.util.ArrayList;

import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.graphics.drawable.Drawable;

public class Content_App {
	public static final String TAG = "Content_App";
	public ApplicationInfo appInfo;
	public String label;
	public Intent launchIntent;
	public PackageManager pm;
	public String packageName;
	public Drawable icon;
	public ArrayList<String> speaks;
	public Content_App(ApplicationInfo appInfo, PackageManager pm) {
		super();
		this.appInfo = appInfo;
		this.pm = pm;
		label = pm.getApplicationLabel(appInfo).toString();
		packageName = appInfo.packageName;
		launchIntent = pm.getLaunchIntentForPackage(packageName);
//		speaks = new ArrayList<String>();
		try {
			icon = pm.getApplicationIcon(packageName);
		} catch (NameNotFoundException e) {
			// TODO Auto-generated catch block
//			Log.d(TAG,"NameNotFoundException");
		}
	}
	
}
